package edu.tsinghua.mrpvc.device.tv;

import java.util.Dictionary;
import java.util.Hashtable;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.service.event.EventConstants;
import org.osgi.service.event.EventHandler;

import edu.tsinghua.mrpvc.device.TvDevice;

public class Activator implements BundleActivator {

//	private TvDeviceImpl tv;
//	private static final String[] RESPONSE_TOPICS = {TvDevice.EVENT_TOPIC_CTRL_KEY_BOARD,
//													TvDevice.EVENT_TOPIC_CTRL_MOUSE}; 
	/*
	 * (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
	 */
	public void start(BundleContext context) throws Exception {
//		tv = new TvDeviceImpl(context, "1");
//		context.registerService(TvDevice.class.getName(), tv, null);
//		
//		Dictionary<String, Object> resProper = new Hashtable<String, Object>();
//		resProper.put(EventConstants.EVENT_TOPIC, RESPONSE_TOPICS);
//		context.registerService(EventHandler.class.getName(), tv, resProper);
	}

	/*
	 * (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
	 */
	public void stop(BundleContext context) throws Exception {
	}

}
